package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "checkcong_", schema = "boot", catalog = "")
//审核从表
public class Checkcong {
    private int congId;//审核从表id
    private Integer checkId;//审核id
    private String congName;//审核人
    private Timestamp congSj;//审核时间
    private String congLeix;//审核类型

    @Id
    @Column(name = "Cong_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getCongId() {
        return congId;
    }

    public void setCongId(int congId) {
        this.congId = congId;
    }

    @Basic
    @Column(name = "Check_id", nullable = true)
    public Integer getCheckId() {
        return checkId;
    }

    public void setCheckId(Integer checkId) {
        this.checkId = checkId;
    }

    @Basic
    @Column(name = "Cong_name", nullable = true, length = 255)
    public String getCongName() {
        return congName;
    }

    public void setCongName(String congName) {
        this.congName = congName;
    }

    @Basic
    @Column(name = "Cong_sj", nullable = false)
    public Timestamp getCongSj() {
        return congSj;
    }

    public void setCongSj(Timestamp congSj) {
        this.congSj = congSj;
    }

    @Basic
    @Column(name = "Cong_leix", nullable = true, length = 255)
    public String getCongLeix() {
        return congLeix;
    }

    public void setCongLeix(String congLeix) {
        this.congLeix = congLeix;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Checkcong checkcong = (Checkcong) o;
        return congId == checkcong.congId &&
                Objects.equals(checkId, checkcong.checkId) &&
                Objects.equals(congName, checkcong.congName) &&
                Objects.equals(congSj, checkcong.congSj) &&
                Objects.equals(congLeix, checkcong.congLeix);
    }

    @Override
    public int hashCode() {
        return Objects.hash(congId, checkId, congName, congSj, congLeix);
    }
}
